<div class="widget">
    <div class="widgetTitle">
        <h3><?= $title; ?> </h3>
    </div>

    <div class="widgetContent bottom-border">
        <div class="row nomargin">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <p class="block text-muted clearfix">
                    Please provide correct information of your Business and Services, we have full right to delete your
                    post anytime without prior intimation.
                </p>

                <?php if (Session::get('message')) { ?>
                    <p class="block clearfix text-red">
                        <i class="fa fa-exclamation-circle fa-2x pull-left "></i> <?= Session::get('message'); ?>
                    </p>
                <?php } ?>



                <form class="form-horizontal" method="post" action="<?= URL::current(); ?>" accept-charset="UTF-8" enctype="multipart/form-data">


                <div class="form-group">
                        <label class="col-sm-2 control-label">Category <span class="text-red"> * </span></label>

                       
                        <div class="col-sm-8">

                            <div id="show_keyword">

                            <input type="hidden"  name="category" id="selectbox-4" class="search-field f-left ui-autocomplete-input select2" data-placeholder="Choose An Option.." />
                 
                            </div>

                             <div class="text-red small"><?php echo $errors->first('category') ?></div>
                
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">Title <span class="text-red"> * </span></label>

                        <div class="col-sm-8">
                            <input type="text" name="title" id="title" class="field" placeholder="Product Title"
                                   value="<?= Input::old('title'); ?>">
                            <div class="text-red small"><?php echo $errors->first('title') ?></div>
                        </div>

                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">Image <span class="text-red"> * </span></label>

                        <div class="col-sm-8">
                            <input type="file" name="image" placeholder="Product Image">
                            <div class="text-red small"><?php echo $errors->first('image') ?></div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">Description <span class="text-red"> * </span></label>

                        <div class="col-sm-8">
                            <textarea name="description" class="form-control field" rows="7"></textarea>
                            <div class="text-red small"><?php echo $errors->first('description') ?></div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">Price <span class="text-red"> (optional) </span></label>

                        <div class="col-sm-3">
                            <input type="text" name="price" class="field" placeholder="Rs. 1500.00">
                            <div class="text-red small"><?php echo $errors->first('price') ?></div>
                        </div>
                        <div class="col-sm-5">
                            Please enter Currency Symbol (i.e $ , Rs)
                        </div>

                    </div>



                    <div class="form-group widget-footer">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-danger">Add</button>
                        </div>

                    </div>
                </form>

            </div>
        </div>
    </div>
</div>